- name: make the app be real
  hosts: os-masters-stg
  user: root
  gather_facts: True

  vars_files:
    - /srv/web/infra/ansible/vars/global.yml
    - "/srv/private/ansible/vars.yml"
    - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  roles:
  - { role: openshift/object, app: modernpaste, file: imagestream.yml }
  - { role: openshift/object, app: modernpaste, template: secret.yml }
  - { role: openshift/object, app: modernpaste, file: buildconfig.yml }
  - { role: openshift/start-build, app: modernpaste, name: modernpaste-docker-build }
  - { role: openshift/object, app: modernpaste, template: configmap.yml }
  - { role: openshift/object, app: modernpaste, file: service.yml }
  - { role: openshift/object, app: modernpaste, file: route.yml }
  - { role: openshift/object, app: modernpaste, file: deploymentconfig.yml }
  - { role: openshift/rollout, app: modernpaste, name: modernpaste-web }
